# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-django-sorl-thumbnail
pkgver=12.6.3
pkgrel=2
pkgdesc="Thumbnails for Django"
options="!check" # Requires running django
url="https://github.com/mariocesar/sorl-thumbnail"
arch="noarch"
license="BSD-3-Clause"
depends="py3-django py3-pillow"
makedepends="py3-setuptools py3-setuptools_scm"
source="https://files.pythonhosted.org/packages/source/s/sorl-thumbnail/sorl-thumbnail-$pkgver.tar.gz"

builddir="$srcdir/sorl-thumbnail-$pkgver"

replaces="py-django-sorl-thumbnail" # Backwards compatibility
provides="py-django-sorl-thumbnail=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="88cd28efb4d1452ecbdf747129298ea15b2c51bc33b4cd013e97a67eee8ac7f6539dbdad36e5b6dc947119c1854bdf18cb261db9a4474eebe48855297ae8817a  sorl-thumbnail-12.6.3.tar.gz"
